﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Streambolics.Notes;

namespace DemoApp
{
    /// <summary>
    ///     A custom database recognizing for the "MOMA" Notes application.
    /// </summary>

    public class MomaDatabase : Database
    {
        public MomaDatabase (Connection c, string aServer)
            : base (c, aServer, "Dbs PGP\\Modifications Manager.nsf")
        {
        }

        /// <summary>
        ///     Create a document. This is redefined to create a MOMA
        ///     document.
        /// </summary>
        /// <param name="nd">
        ///     The NotesDocument to be wrapped.
        /// </param>
        /// <returns>
        ///     A MomaDocument.
        /// </returns>

        protected override Document CreateDocument (Domino.NotesDocument nd)
        {
            return new MomaDocument (nd);
        }
    }
}
